<?php

namespace application;

use fastphp\Controller;
use fastphp\facade\Response;

class BaseController extends Controller
{
    function json($msg,$data=[],$code=200,$extra=[])
    {
        Response::create($msg,$data,$code,$extra);
    }
}